1、查看服务状态 #systemctl status httpd (1)配置文件出错 可以看到:Syntax error on line 364 of /etc/httpd/conf/httpd.conf:(/etc/httpd/conf/httpd.conf的第364行出现语法错误:) Invalid command 'adModule', perhaps misspelled or defined by a module not included in the server configuration(命令“admodule”无效,可能拼写错误或由服务器配置中未包含的模块定义) 打开配置文件,修改语法错误即可。

启动httpd服务

#service httpd start 故障已经排除

(2)端口号被占用或者被修改 查看端口号是否被占用 #netstat -antlp | grep 80 提供两种思路,杀死占用进程或者更换httpd的端口号。这里不再赘述。

 (3)防火墙阻挡
 建议直接关闭防火墙
 #service iptables stop

或者开放端口 #firewall-cmd --add-service=http